<nav>
<?php use_stylesheet('bootstrap.css') ?>
<?php use_stylesheet('bootstrap-select.css') ?>
<?php use_stylesheet('bootstrap-theme.css') ?>    

<?php use_javascript('bootstrap11.js') ?>
<?php $id = $sf_user->getAttribute('beca_id') ?>
    <?php if($id == ''):?>
        <?php include_partial('menu', array('id'=> 1))?>
    <?php else:?>
        <?php include_partial('menu', array('id'=> $id))?>
    <?php endif;?>
    <?php $sf_user->setAttribute('id', $beca->getId())?>
    <?php $sf_user->setAttribute('email', $sf_user->getAttribute('email'))?>
</nav>
<article>
<table class="table">
  <thead>        
    <tr>
        <th colspan="2"><h2 id="titulo_form">RESUMEN DE LA CONVOCATORIA</h2></th>
    </tr>
  </thead>

  <tbody>        
    <tr>
      <th>Id:</th>
      <td><?php echo $beca->getId() ?></td>
    </tr>
    <tr>
      <th>Nombre:</th>
      <td><?php echo $beca->getNombre() ?></td>
    </tr>
    <tr>
      <th>Logo:</th>
      <td><?php echo image_tag('/uploads/logos/'.$beca->getLogo(), 'id=img_logo', 'alt=logo'.$beca->getId()) ?></td>   
    </tr>
    <tr>
      <th>Fecha inicio:</th>      
      <td><?php setlocale(LC_TIME,'es_CO.utf8'); echo strftime("%A %d, de %B de %Y", strtotime($beca->getFechaInicio()))  ?></td>
    </tr>
    <tr>
      <th>Fecha cierre:</th>      
      <td><?php setlocale(LC_TIME,'es_CO.utf8'); echo strftime("%A %d, de %B de %Y", strtotime($beca->getFechaFin()))  ?></td>
    </tr>
    <tr>
      <th>Entidad que convoca:</th>
      <td><?php echo $beca->getEntidad()->getNombre()?></td>
    </tr>
    
    <?php //foreach($beca->getAtributosAdicionalesBeca() as $atributo):?>         
    <tr>
        <?php //foreach(AtributosTable::textoAtributo($atributo->getAtributoId()) as $texto):?>    
        <td><label><?php //echo $texto['nombre'];?></label></td>               
        <td><label><?php //echo $atributo->getAtributoValor();?></label></td>
        <?php //endforeach;?> 
    </tr> 
    <?php //endforeach;?>
        
  </tbody>
  <tfoot>
<!--  <tr><td colspan="2"><center><input type="submit" class="btn btn-primary" value="Aplicar a esta beca" /></center></td></tr>-->
      <tr><td colspan="2"><center><a href="<?php echo url_for('aplicaciones/new')?>" class="btn btn-primary">Aplicar a esta convocatoria</a></center></td></tr>
  </tfoot>
</table>    
</article>